package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="MaintainPerson"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class MaintainPerson implements Serializable {

    /** identifier field */
    private Integer personId;

    /** nullable persistent field */
    private String personName;

    /** nullable persistent field */
    private String sex;

    /** nullable persistent field */
    private String maintainRange;

    /** nullable persistent field */
    private String linkTel;

    /** nullable persistent field */
    private String remark;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String nativePlace;

    /** nullable persistent field */
    private String minzu;

    /** nullable persistent field */
    private String birthday;

    /** nullable persistent field */
    private String identifyId;

    /** nullable persistent field */
    private String workExp;

    /** nullable persistent field */
    private String workLevel;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public MaintainPerson(String personName, String sex, String maintainRange, String linkTel, String remark, String userId, String latestDate, String nativePlace, String minzu, String birthday, String identifyId, String workExp, String workLevel, String assoId) {
        this.personName = personName;
        this.sex = sex;
        this.maintainRange = maintainRange;
        this.linkTel = linkTel;
        this.remark = remark;
        this.userId = userId;
        this.latestDate = latestDate;
        this.nativePlace = nativePlace;
        this.minzu = minzu;
        this.birthday = birthday;
        this.identifyId = identifyId;
        this.workExp = workExp;
        this.workLevel = workLevel;
        this.assoId = assoId;
    }

    /** default constructor */
    public MaintainPerson() {
    }

    /** minimal constructor */
    public MaintainPerson(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="PersonId"
     *             unsaved-value="0"
     *         
     */
    public Integer getPersonId() {
        return this.personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    /** 
     *            @hibernate.property
     *             column="PersonName"
     *             length="20"
     *         
     */
    public String getPersonName() {
        return this.personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    /** 
     *            @hibernate.property
     *             column="Sex"
     *             length="6"
     *         
     */
    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    /** 
     *            @hibernate.property
     *             column="MaintainRange"
     *             length="100"
     *         
     */
    public String getMaintainRange() {
        return this.maintainRange;
    }

    public void setMaintainRange(String maintainRange) {
        this.maintainRange = maintainRange;
    }

    /** 
     *            @hibernate.property
     *             column="LinkTel"
     *             length="40"
     *         
     */
    public String getLinkTel() {
        return this.linkTel;
    }

    public void setLinkTel(String linkTel) {
        this.linkTel = linkTel;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="nativePlace"
     *             length="50"
     *         
     */
    public String getNativePlace() {
        return this.nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    /** 
     *            @hibernate.property
     *             column="minzu"
     *             length="6"
     *         
     */
    public String getMinzu() {
        return this.minzu;
    }

    public void setMinzu(String minzu) {
        this.minzu = minzu;
    }

    /** 
     *            @hibernate.property
     *             column="birthday"
     *             length="23"
     *         
     */
    public String getBirthday() {
        return this.birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /** 
     *            @hibernate.property
     *             column="identifyId"
     *             length="18"
     *         
     */
    public String getIdentifyId() {
        return this.identifyId;
    }

    public void setIdentifyId(String identifyId) {
        this.identifyId = identifyId;
    }

    /** 
     *            @hibernate.property
     *             column="workExp"
     *             length="2147483647"
     *         
     */
    public String getWorkExp() {
        return this.workExp;
    }

    public void setWorkExp(String workExp) {
        this.workExp = workExp;
    }

    /** 
     *            @hibernate.property
     *             column="workLevel"
     *             length="6"
     *         
     */
    public String getWorkLevel() {
        return this.workLevel;
    }

    public void setWorkLevel(String workLevel) {
        this.workLevel = workLevel;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("personId", getPersonId())
            .toString();
    }

}
